package com.infore.maintenance.main.service;

import com.github.pagehelper.Page;
import com.infore.common.model.entity.TBaseQuerySql;
import com.baomidou.mybatisplus.service.IService;
import com.infore.common.request.query.CheckSqlRequest;
import com.infore.common.request.query.QuerySqlRequest;
import com.infore.common.response.ApiPageResponse;

import java.util.Map;

/**
 * <p>
 * 查询接口SQL模板 服务类
 * </p>
 *
 * @author lijh
 * @since 2022-12-01
 */
public interface TBaseQuerySqlService extends IService<TBaseQuerySql> {

    TBaseQuerySql getQuerySql(String sqlCode);
    String checkSql(String encryptSql);
    boolean checkSqlExecute(TBaseQuerySql tbasequerysql);
    ApiPageResponse<Map<String, Object>> checkSqlResult(CheckSqlRequest request, Page page);
    Object queryDataByCxpz(QuerySqlRequest request);
    ApiPageResponse<Map<String, Object>> queryDataByCxpzForPage(QuerySqlRequest request);





}
